﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AdjustCourseSerials.aspx.cs"
    Inherits="Corsat.Web.Administration.AdjustCourseSerials" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="rtl">
<head runat="server">
    <title></title>
    <style type="text/css">
        .progressBackgroundFilter
        {
            position: fixed;
            top: 0px;
            bottom: 0px;
            left: 0px;
            right: 0px;
            overflow: hidden;
            padding: 0;
            margin-left: auto;
            margin-right: auto;
            background-color: #000;
            filter: alpha(opacity=50);
            opacity: 0.5;
            z-index: 1000;
        }
        
        .processMessage
        {
            margin-left: auto;
            margin-right: auto;
            position: fixed;
            top: 30%;
            left: 43%;
            padding: 10px;
            width: 14%;
            z-index: 1001;
            background-color: #fff;
            border: solid 1px #000;
            text-align: center;
            font-size:large;
            font-style:oblique;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="formScriptManager" runat="server">
    </asp:ScriptManager>
    <div>
        <asp:UpdateProgress ID="UpdateProgress2" runat="server">
            <ProgressTemplate>
                <div class="progressBackgroundFilter">
                </div>
                <div class="processMessage">
                    جارى التحميل...<br />
                    <br />
                    <img alt="Loading..." src="~/Images/Loading.gif" />
                </div>
            </ProgressTemplate>
        </asp:UpdateProgress>
        <table align="center" width="900px">
            <tr>
                <td>
                    <asp:Panel ID="pnlChooseCourse" runat="server" GroupingText="إختيار كورس" Font-Bold="False"
                        Font-Size="Large" Direction="RightToLeft">
                        <table width="100%" dir="rtl">
                            <tr>
                                <td style="width: 40%">
                                    <asp:Panel runat="server" ID="pnlCourseName" GroupingText="الكورس" Height="100%">
                                        <asp:DropDownList ID="ddlCourseNames" runat="server" Width="100%" OnSelectedIndexChanged="ddlCourseNames_SelectedIndexChanged"
                                            AutoPostBack="true" Style="font-size: large; margin-right: 0px">
                                        </asp:DropDownList>
                                    </asp:Panel>
                                </td>
                                <td style="width: 40%">
                                    <asp:UpdatePanel ID="upCourseLevels" runat="server">
                                        <ContentTemplate>
                                            <asp:Panel ID="pnlCourseLevels" runat="server" GroupingText="المستوى">
                                                <asp:RadioButtonList ID="rdoLevel" runat="server" RepeatLayout="Flow" 
                                                    RepeatDirection="Vertical"   AutoPostBack="true"
                                                    onselectedindexchanged="rdoLevel_SelectedIndexChanged">
                                                </asp:RadioButtonList>
                                            </asp:Panel>
                                        </ContentTemplate>
                                        <Triggers>
                                            <asp:AsyncPostBackTrigger ControlID="ddlCourseNames" EventName="SelectedIndexChanged" />
                                        </Triggers>
                                    </asp:UpdatePanel>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <hr />
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" align="center">
                                    <asp:LinkButton ID="btnLoad" runat="server" Text="تــــحـــمــــيــــل" Font-Size="Large"
                                        Font-Bold="true" onclick="btnLoad_Click"></asp:LinkButton>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                        <asp:Panel ID="pnlAccountsInCourse" runat="server" GroupingText="الدارسين" Font-Size="Large">
                        <table align="center">
                        <tr>
                        <td>
                        <asp:GridView ID="grdAccounts" runat="server" AutoGenerateColumns="False" 
                                BackColor="#CCCCCC" BorderColor="#999999" BorderStyle="Solid" BorderWidth="3px" 
                                CellPadding="4" CellSpacing="2" EnableModelValidation="True" ForeColor="Black">
                            <Columns>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:HiddenField ID="hdnAccountId" runat="server" Value="<%# Bind('AccountId') %>" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="الرقم فى الكورس">
                                    <ItemTemplate>
                                        <asp:TextBox ID="txtAccountSerialInCourse" runat="server" Font-Bold="True" Font-Size="Large" width="90%" style="text-align:center;" Text="<%# Bind('AccountSerialInCourse') %>"></asp:TextBox>
                                    </ItemTemplate>
                                    <ItemStyle Width="100px" />
                                </asp:TemplateField>
                                <asp:BoundField HeaderText="الرقم الكورساتى" DataField="CorsatId" ItemStyle-HorizontalAlign="Center" ItemStyle-Font-Size="Large" ItemStyle-Font-Bold="true">
                                <ItemStyle Width="100px" />
                                </asp:BoundField>
                                <asp:BoundField HeaderText="الإسم" DataField="ArabicName"  ItemStyle-HorizontalAlign="Center" ItemStyle-Font-Size="Large" ItemStyle-Font-Bold="true">
                                <ItemStyle Width="500px" />
                                </asp:BoundField>
                            </Columns>
                            <FooterStyle BackColor="#CCCCCC" />
                            <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#CCCCCC" ForeColor="Black" HorizontalAlign="Left" />
                            <RowStyle BackColor="White" />
                            <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
                        </asp:GridView>
                        </td>
                        </tr>
                        <tr>
                        <td>
                        <hr />
                        </td>
                        </tr>
                        <tr>
                        <td align="center">
                            <asp:LinkButton Text="حـــفـــظ" runat="server" Id="btnSave" Font-Bold="true" 
                                Font-Size="Large" onclick="btnSave_Click"/>
                        </td>
                        </tr>
                        </table>
                        </asp:Panel>
                        </ContentTemplate>
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="btnLoad" EventName="Click" />
                            <asp:AsyncPostBackTrigger ControlID="ddlCourseNames" EventName="SelectedIndexChanged" />
                            <asp:AsyncPostBackTrigger ControlID="rdoLevel" EventName="SelectedIndexChanged" />
                        </Triggers>
                        </asp:UpdatePanel>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
